<?php 
declare (strict_types = 1);
namespace app\admin\controller;
use app\common\controller\Admin;
use think\Request;
class VirtualCharacters extends Admin
{
    protected $table_id = false;
    public function initialize()
    {
        $this->menu_input = [
            'all' => [
                ['type' => 'text', 'name' => '昵称', 'key' => 'name','verify'=>'required'],
                ['type' => 'y_image', 'name' => '头像', 'key' => 'image','verify'=>'required'],
            ],
            'add' => [
            ],
            'upload' => [
            ],
        ];
        parent::initialize(); // TODO: Change the autogenerated stub
    }
    public function table_mage(&$data = [])
    {
        $data = [
            ['field' => 'create_time', 'title' => '添加时间'],
            ['field' => 'name', 'title' => '昵称'],
            ['field' => 'image', 'title' => '头像', 'templet' => '#list_image'],
            ['title' => '操作', 'templet' => '#list_setting']
        ];
        return parent::table_mage($data); // TODO: Change the autogenerated stub
    }
}